package main

import "fmt"

func main() {
	//var team = [3]int{1, 2, 3}
	//fmt.Println(team, team[1:2]) // 左闭右开

	var team [30]int
	for i := 0; i < 30; i++ {
		team[i] = i + 1
	}
	fmt.Println(team)
	fmt.Println(team[20:])
	fmt.Println(team[:15])
	fmt.Println(team[:])
	fmt.Println(team[0:0]) // 将前后都设置成零 生成空的切片
}
